package struct;

public class WhileDemo03 {
    public static void main(String[] args) {
        //练习：用while循环输出1-1000之间能被5整除的数，并且每行输出3个
        int i = 0;
        while (i<=1000){
            if (i%5==0){
                System.out.print(i+"\t");
            }
            if (i%(5*3)==0){
                System.out.println();
            }
            i++;
        }
    }
}
